package com.chendx.store.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chendx.model.goods.pojo.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by chendx on 2022/4/19.
 */
@Mapper
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {


    @Select("select brand_id from tb_category_brand where category_id = #{id}")
    public List<Integer> getBrandIds(@Param("id") Integer id);
}
